<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<link href="../../css/style.css" rel="stylesheet" type="text/css" />
<head>
	<sx:head extraLocales="en-us,nl-nl,de-de" />
</head>

<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td>
			<div class="blue-text16" style="margin: 0px 0px 0px 0px">
				Account Sheet
			</div>
			<div class="header-separator-bg" style="margin: 10px 5px 0px 0px"></div>
		</td>
	</tr>
	<tr>
		<td>
			<form method="post" action="searchAccountSheets.htm"
				name="Accounts_Manager" >
				<input name="userId"
					value="<s:property value="accountDetailList.id" />" type="hidden">
				<table width="100%" border="0">
					<tbody>
						<tr>
							<td nowrap="nowrap" class="search-text" width="20%">
								<b>Date From (dd/mm/yyyy):</b>
							</td>
							<td width="70%" nowrap="nowrap" width="40%" class="common-text">
								<sx:datetimepicker displayFormat="dd/MM/yyyy" value="%{'today'}"
									toggleType="wipe" toggleDuration="300" name="fromDate" />
								<b class="search-text">To (dd/mm/yyyy):</b>
								<sx:datetimepicker displayFormat="dd/MM/yyyy" value="%{'today'}"
									toggleType="wipe" toggleDuration="300" name="toDate" />
							</td>
							</tr><tr>
							<td width="20%">
								<table border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td class="btn-grey-left1"></td>
										<td class="btn-grey-middle1 ">
											<s:submit name="searchBtn" value="Search" theme="simple"
												cssClass="submit-btn-common" />
										</td>
										<td class="btn-grey-right1"></td>
									</tr>
								</table>
							</td>
						</tr>
					</tbody>
				</table>
				<table width="100%"><tr><td>
				<display:table style="width: 100;" name="depositsList" pagesize="10" requestURI="viewAccountSheet.htm"
					cellpadding="6" cellspacing="1" id="row" class="common-text">
					<display:column title="Nr."
						headerClass="grid-header-bg grid-header-text"
						class="grid-bg common-text" style="text-align: center">
						<c:out value="${row_rowNum}" />
					</display:column>
					<display:column headerClass="grid-header-bg grid-header-text"
						class="grid-bg common-text" style="text-align: center"
						property="source" title="Description" />
					<display:column headerClass="grid-header-bg grid-header-text"
						class="grid-bg common-text" style="text-align: center"
						title="Date" autolink="true">
						<s:date name="#attr.row.depositDate" format="dd MMMM, yyyy" />
					</display:column>
					<display:column headerClass="grid-header-bg grid-header-text"
						class="grid-bg common-text" style="text-align: right"
						title="Debit">
						<s:if test="%{#attr.row.amount < 0}">
							<s:set name="amt" value="%{-1 * #attr.row.amount}"></s:set>
							<s:property value="#amt" />
						</s:if>
					</display:column>
					<display:column headerClass="grid-header-bg grid-header-text"
						class="grid-bg common-text" style="text-align: right"
						title="Credit">
						<s:if test="%{#attr.row.amount > 0}">
							<s:property value="#attr.row.amount" />
						</s:if>
					</display:column>
					<display:footer>
						<tr>
							<td height="23"
								class="grid-header-bg grid-header-text grid-bg common-text"
								style="padding: 0px 0px 0px 10px" colspan="3">
								<b>Current Account Balance:</b>
							</td>
							<td colspan="2"
								class="grid-header-bg grid-header-text grid-bg common-text"
								style="padding: 0px 10px 0px 0px" align="right">
								<b><s:property value="accountDetailList.currentBalance" />
								</b>
							</td>
						<tr>
					</display:footer>
				</display:table>
				</td></tr></table>
			</form>
		</td>
	</tr>
</table>
